import { createSvgIconsPlugin } from 'vite-plugin-svg-icons';
export default (path, isBuild) => {
  return createSvgIconsPlugin({
    // 要缓存的图标文件夹
    iconDirs: [path.resolve(__dirname, "src/assets/icons")],
    // 执行 icon name 的格式
    symbolId: "icon-[name]",
    svgoOptions: isBuild
  });
};
